<?php
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Tran Van Anh',
	'theme'=>'darklight', //them: vista,darklight
	
	//load language
	'sourceLanguage'=>'vi-VN', //vi-VN,en-GB
	'language'=>'en', //vi,en
	// preloading 'log' component
	'preload'=>array('log'),
	//load module 
	'modules'=>array(
		'test',
		'slidearticle',
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'anhtran2114',
		),
    ),

	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.controllers.*',
/* 		'application.modules.auth.models.*',
		'application.modules.auth.components.*',
		'application.modules.auth.controllers.*',  */
	),
	
	// set default controller
	'defaultController'=>'admin',
	
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
	//		'loginUrl'=>array('/user/login'),
		),
		//load database mysql
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=dbsource',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			'tablePrefix' => 'adc_',
		),
		//url format
        'urlManager'=>array(
  //      	'urlFormat'=>'path', //format path url 
	//		'urlSuffix'=>'.html', //suffix url current
	//		'caseSensitive'=>false,
	//		'useStrictParsing'=>false,
			'rules'=>array(
        		'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
        	),
        ),
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				// uncomment the following to show log messages on web pages
				
				/* array(
					'class'=>'CWebLogRoute',
				), */
				
			),
		),
		 // session
		'session' => array(
           'class' => 'CDbHttpSession',
            'connectionID' => 'db',
            'sessionTableName'  =>  'adc_session',
            'autoCreateSessionTable'   =>  true,
            //Extension properties
        //    'compareIpAddress'=>true,
        //    'compareUserAgent'=>true,
        //    'compareIpBlocks'=>0
            ),
		// ----
	),
	'params'=>require(dirname(__FILE__).'/../../config/params.php'),
);